package com.woniuxy.banka.controller;

import com.woniuxy.banka.service.BankaService;
import com.woniuxy.common.entity.Bank;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: 曾令忠
 * @Description:
 * @Date: 2020/7/11 0011-上午 10:54
 */
@RestController
public class BankaController {
    @Autowired
    BankaService bankaService;
    @RequestMapping("/sub")
    public void name(){
        Bank bank = new Bank().setUser("zhangsan").setMoney(500);
        bankaService.submoney(bank);
    }
}
